package com.blog.config;

import feign.Logger;
import feign.RetryableException;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName SecOrdersConfig
 * @Destription 配置类：feign记录日志
 * @Author 天堂小野花
 * @Date 2025/8/23  10:55
 * @Version 1.0
 */
@Configuration
public class SecOrdersConfig {
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

    @Bean
    Retryer retryer(){
        return new Retryer.Default();
    }
}
